<template>
    <div>
             <div class="title">
                {{info.post_title}}
             </div>
             <div class="content" v-html="info.post_content"></div>
    </div>
</template>

<script>
    export default {
        data() {
        return {
            info: {}
        }
    },
    mounted() {
        this.id = this.$route.query.id
        this.getInfo()
    },
    methods: {
        getInfo() {
            this.$api.getArticle({
                id:this.id
            }).then(res => {
                if (res.code == 1) {
                    this.info = res.data
                }
            })
        },
    }
    }
</script>

<style lang="scss" scoped>
.title{
    width: 100%;
    text-align: center;
    font-family: MiSans;
font-weight: 500;
font-size: 40px;
padding: 250px 0 0;
margin-bottom: 30px;
color: #2B2B2B;
}
.content{
    padding: 20px 350px;
    img,video{
        max-width: 100%;
        height: auto;
    }
}
</style>